package com.shura.ssm.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User实体
 * Created by shura
 * Date：2017/9/3
 * Time：16:05
 */
@Entity
@Table(name = "t_user")
public class User {

    //主键
    @Id
    private Integer id;

    //用户名
    @Column(name = "user_name")
    private String userName;

    //密码
    @Column(name = "password")
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
